/**
 * Author@ Cheng Feitian
 * Date: 2020-3-23
 * Description: 测试struct内部能否写函数
 */

#include <algorithm>
#include <iostream>
#include <string>

using namespace std;
const int maxn = 1024;

struct Person{
    string m_Name;
    void setName(string name){
        m_Name = name;
    }
};

int main() {

    
    Person p;
    p.setName("张三");

    cout << "人名：" << p.m_Name << endl;

    return 0;
}
